package net.minecraft.src;

public class Itemcricket1 extends Item
{

    public Itemcricket1(int i)
    {
        super(i);
        setHasSubtypes(true);
        setMaxDamage(0);
        maxStackSize = 16;     
        
    }
        public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
        {
            itemstack.stackSize--;
            world.playSoundAtEntity(entityplayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
            if(!world.multiplayerWorld)
            {
                world.entityJoinedWorld(new EntityCricket1(world, entityplayer));
            }
            return itemstack;
        }
}